package cn.drew.org.service;

import cn.drew.basic.utils.PageList;
import cn.drew.org.domain.Employee;
import cn.drew.org.query.EmployeeQuery;

import java.util.List;

public interface EmployeeService {
    //添加
    void add(Employee employee);
    //修改
    void update(Employee employee);
    //删除
    void delete(Long id);
    //查找一个
    Employee findById(Long id);
    //查找所有
    List<Employee> findAll();

    //分页查找数据
    PageList<Employee> queryByPage(EmployeeQuery employeeQuery);

    //批量删除
    void patchDelete(List<Long> ids);

    //根据部门id查找所有员工
    List<Employee> findByDeptid(Long deptid);
}
